﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace SYcwpb.Models
{
    /// <summary>
    /// 添加非夜班司机功能绑定用的model
    /// </summary>
    public class BedRoomsModel
    {
        public string RoomName { get; set; }

       
        

        private ObservableCollection<int> _beds;
        public ObservableCollection<int> Beds
        {
            get { return _beds; }
            set
            {
                _beds = value;
            }
        }



        public static BedRoomsModel GetBedRoomsModel(string roomN,int bedCount)
        {
            BedRoomsModel model = new BedRoomsModel();

            model.RoomName = roomN;

            model.Beds = new ObservableCollection<int>();

            for (int i = 1; i <= bedCount;i ++ )
            {
                model.Beds.Add(i);
            }

            return model;
        }

    }
}
